[I searched for a duplicate, but did not find a replacement (instead of prevention, etc.). If there is one, then this or the one that should be closed.]
In Emacs, go to the character file ^M. Go to the beginning of the file ( M-<), then:
M-x replace-string C-q C-m RET RET
, , Control + q, Control + m, Enter. , , Enter ( ).