If you are having problems with not knowing when CGI is escaping and not escaping characters,
's autoescape functionality may be informative. Normally, CGI escapes ALL relevant URL information. If you find this inappropriate under your circumstances then you can disable it. However, this functionality is not toggleable.