Piping to grep.exe and redirecting to a file turns 0x0D0A into 0x0A. For example, with CMD.EXE,
echo foo | grep foo > foo.txt