Newline character added at end of file