simpler buffer shim utf8 code