7.3’s text rule: bytes cut to their first CUT bytes at a code
point boundary, an invalid byte counting as one code point, then each
invalid byte replaced by U+FFFD; and whether it was cut. The string is
allocated once, at the length text_len measures.