Fix unicode errors with the redirect middleware (bug 1097147)