URI encode URLs being sent as parameters to proxy