Improve converting line endings