Fix issue #21 where we removed last trailing char if there was no newline at the end.