Fix issue with malformed query strings resulting in an exception
Merge pull request #61 from cndreisbach/bug-252

Fix issue with malformed query strings resulting in an exception