If the redirect URL contains characters RFC 3986 doesn't permit, encode them