Make basic buffer operations utf8-aware