pub fn encode_stdout_surrogateescape(text: &str) -> Cow<'_, [u8]>Expand description
Encode a rendered stdout payload, re-materializing sentinel chars as
their raw original bytes (the oracle’s stdout uses surrogateescape, so
a lone surrogate prints as the byte that produced it). Borrow when no
translation is needed.