Fix "invalid byte sequence in UTF-8" errors
Merge pull request #216 from 3flex/patch-1

Fix "invalid byte sequence in UTF-8" errors introduced in #213