Don't create a file without a trailing newline.