Do the right thing with line endings