Encode the string s in the buffer using UTF-8.
The string to encode.
The offset in the buffer where the encoded string starts.
See Implementation
Encode the string s in the buffer using UTF-8.