Fix unicode errors with the redirect middleware (bug 1097147)
Merge pull request #362 from davidbgk/1097147-unicode-error-query-string

Fix unicode errors with the redirect middleware (bug 1097147)