Making test work on windows.

Templfiles are left closed (to unlock them) for later reading. Newlines are os dependant.
Support for files encoded with utf-8
Merge pull request #12 from wooyek/feature/convert_from_utf8

Feature - Convert from utf8 and support Windows newlines