Fix encoding error in host redirects with unicode in path