Decode query string from URI

Fixes #133