Replace invalid UTF-8 sequences in S with U+FFFD.
The returned string is valid UTF-8. This is much slower than isUTF8, so test that first.
A valid UTF-8 string with invalid sequences replaced.
| Name | Description |
|---|---|
| S | String that may contain invalid UTF-8. |