encode URL's before request