Changes to better handle CGI variables with unicode, and keep REQUEST_URI percent encoded.