fixing decoding/encoding urls