Your best bet once you get it fixed is to stop using Word. It's notorious for mangling code and/or inserting garbage characters. Plain ole Notepad is your friend. NoteTab Light is also a fabulous, full-featured text editor. And it's free!
http://www.notetab.com/ntl.php