Don't encode resource URL's query part

Fixes #120