use URI::Escape; ## lots of other stuff ## $booktitle = URI::Escape::uri_escape_utf8($booktitle);