normalizing eof newline