Only encode proxied url if it is not encoded elsewhere