Should the fall-back always be `EOL_DOS` if `eol_style` is invalid? The old code did not set fileformat in that case.