MtoWellFormed
Bun

method

ffi.CString.toWellFormed

toWellFormed(): string;

Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).