Use a convenience method for getting appropriate line endings.