--strip-trailing-cr worked as intended for comparison between files, but the characters were still present in final output.