Merge pull request #39

Validate file ends with newline character