Stop adding trailing newlines

Files will always end with (only) one newline. Fixes #3.