Fix chunkifier to work with non-UTF8 chars