properly remove all line endings