percent-encode the query parts of a request too, not only the path.