replace the UTF-8 implementation with pako's.

Thanks @puzrin for the hints :)