Escape query parameters
Actually use SSL when dealing with HTTPS URLs
Change tests to expect HTTPS URLs
Merge pull request #1 from javawizard/master

url handling cleanup