Convert line ending to machine independent line endings

This prevents ^M from displaying in certain cases on OSX.