Fix redirection to non-latin wiki pages after logon
Consider a project having some wiki page with non-latin (russian) characters in URL: http://demo.redmine.org/projects/nonlatinwikipages/wiki/тестовая_страница
When non-authenticated user tries to access this page he is asked to complete logon procedure, after that he'll be redirected to default page ("My page" in my case) instead of wiki page.
This behaviour is caused by a ruby bug #21314: Uri parser not accepting non-Latin characters:
Attached patch is mere a workaround for the bug.