Explicitly convert potential bytearrays to str
Merge pull request #9 from virtuald/byte-fixes

Explicitly convert potential bytearrays to str