Fix crash on 404 page with unicode characters in the URL.