auto-detect line endings so the Excel CSV output "just works"