utf8: fix checking for glyph width in `strbuf_utf8_replace()`