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.
Multi-line tokens would be written with `LF`, regardless the `end_of_line` setting.
Fixes#228 and also produces end_of_line specified line-endings in strings.