Fix strange encoding issue by redirecting