Escape query string characters with CGI.escape