r into the provided Uint8Array as will completely fit in it, converting lone surrogates to REPLACEMENT CHARACTER. Return an array [r, w] where |r| is the number of 16-bit units read and |w| is the number of bytes of UTF-8 written.