in reply to adding 0D 0A to a UTF-8 file.

Simple, don't use Notepad.

Line endings on Windows are generally "\r\n", and this is what Notepad on XP expects. Other platforms just use "\n", and that is what Notepad cannot cope with and displays your rectangle. Try Wordpad, or one of the myriad of other, better text editors.