change end of file to newline