Fix trailing `^M` characters on end of lines.