Update utf8 implementation

This pull request replaces the utf8 implementation with the one from pako. This fixes #142.