fixing url escaping bug with an ugly decoding hack