cannot reproduce bug using Tempfile + encoding - will try with actual strings files
added some tests around encoding
solved the problem with BOM at the beginning of strings files