supply uri malformed error to the callback
Merge pull request #331 from yields/fix/querystring

supply uri malformed error to the callback