Utility functions to change line endings