in reply to URL escaping

Along with all the other suggested modules you can use Apache::Util::escape_uri if you are using mod_perl. The perldoc says that the Apache version is about 3 times faster. Also if you need to escape HTML there is a escape_html subroutine in the module that is much faster than HTML::Entities::encode.

-ben