Encode a character into a unicode code point
The string to get the character from.
The offset of the character to encode.
The encoded character number.
Encode a character into a unicode code point