Restore trailing newline character at the end of the file.