Ability to control if fragments should always have a newline at the end.

Configurably handle files which lack newlines.

This appears to work but is not reversible. Still investigating.