Fix query handling for relative URLs
Merge pull request #35 from peternied/queryfix

Fix query handling for relative URLs