in reply to Insert URL Encoding

the excellent module CGI::Enurl; will also accomplish such a task.