* If the user has "fixendofline" set, append a blank line to preserve the EOF newline * Break utility function out into its own file and add tests * Improve EOL detection based on docs and improve tests