fix(matrix): truncate reply context on code-point boundaries (#97471)
<pre style='white-space:pre-wrap;width:81ex'>fix(matrix): truncate reply context on code-point boundaries (#97471) truncateReplyBody used a raw value.slice(0, MAX_REPLY_BODY_LENGTH - 3) to shorten long reply bodies. When the cut index fell between the two UTF-16 code units of a surrogate pair (e.g. an emoji), the slice left a lone high surrogate before the ellipsis, which renders as a broken glyph in the reply context shown to the agent. Replace the raw slice with sliceUtf16Safe from the plugin

