querystring encoding fixes