Add test for files with trailing newline
Fix final newline stripping (don't strip them)
Refactor test per advice of @audreyr and @pfmoore
Merge pull request #183 from treyhunner/maintain-trailing-newlines

Properly maintain newlines at end of files