Protect against unicode madness in file redirection.