Fixed redirect url (to use URI#encode)