Modified the way to encode the request parameter to redirect

When create the redirect target url in RedirectView, modified to encode
the request parameters using the UriUtils#encodeQueryParam method.

Issue: SPR-11821

Please review this PR and if OK, merge to master branch.
I hope backport to 3.2.x branch.