Define encoding when reading files if they aren't opened in binary mode
Merge pull request #23 from Tenzer/read-utf8

Handle unicode characters when reading from files