Fast replacement for CGI.escape and Rack::Utils.escape