write_file(): drop caller-supplied LF from calls to create a one-liner file