Avoid pack/unpack to produce the binary form of a utf8 string