fixing unicode handling, fixes #26
Merge pull request #28 from segmentio/fix/string-handling

fixing unicode handling, fixes #26