Encode querystring so hashtags don't break