Basic fix for utf8 decoder issues.
Merge pull request #48 from Lanzaa/fix-decoder

Basic fix for utf8 decoder issues.