Corrected redirection loop bug due to not urldecoded parameter

That fix works, but I don't think we should end up doing such fixes. Looks like params were decoded in 1.8 and that changed in 1.9