Query params

The process of converting the url to a URI object and extracting the path was chopping off the query params. This pull request adds a test for the situation, and a small code fix to add the query parameters back on to the request. This only covers basic cases, i.e., characters that are ascii and not considered illegal according to RFC 2396; further testing in that regard is warranted.