If no `--end_of_line` was specified, find the first line ending in the input and use that for the whole output. All tests include checking for differences in line endings. Closes #552.