Did you try pasting as plain text(alt-cmd-V)? Any word processor is going to have a lot of junk(non-text) that gets copied to and pasted from the clipboard.
Removing formatting may not work. The best way would be to use a text editor and not a word processor, second best would be to paste as plan text.