Fix encoding issue with Unicode text in ASCII file