Add ensure_newline_at_eof_on_save option on preference.