This will double encode the url, see the line below. Does it need to be double encoded on the wire?