Encoding the redirect url.