The 256 KiB budget for an oversized tool diff preview counts UTF-16 units, so the cut can land between the two halves of an astral character - an emoji in a patched string, for instance. The preview then ended in a lone surrogate that renders as the replacement glyph. Step back one unit when the boundary splits a pair.