Sounds like a character encoding issue. By saving it in a text file, the text editor saves it with the correct character encoding for Macs.