url-encode any illegal characters in the path of the URL being parsed