Input string: http://hotbot.com/cgi-bin/query?pg=q&what=news&fmt=.&q=%2Bcgi-bin+%2Bperl.exe
Using s/%([a-fA-F0-9]{2})/chr(hex($1))/ge :http://hotbot.com/cgi-bin/query?pg=q&what=news&fmt=.&q=+cgi-bin++perl.exe
Input string : http://www.abc.com?a=b&c=d+5%
Using URI::Escape :http%3A%2F%2Fwww.abc.com%3Fa%3Db%26c%3Dd%2B5%25
Input string : http://www.abc.com?a=b&c=d+5%
Using URI::Escape with 2-nd param: http%3A%2F%2Fwww%2Eabc%2Ecom?a%3Db%26c%3Dd%2B5%25
Input string : http%3A%2F%2Fwww%2Eabc%2Ecom?a%3Db%26c%3Dd%2B5%25
back to ascii : http://www.abc.com?a=b&c=d+5%