support encoded urls in oauth redirects