Replaces one UTF-16 code unit without changing the content length.
zero-based position to replace.
replacement code unit; surrogate pairs are not validated.
if index is negative or is at least length.