When building with Java, read files as UTF-8
Merge pull request #180 from SimenB/master

When building using Java, read files as UTF-8