Auto-detect line endings for CSV files