decodeCodepoint
Decodes a UTF-8 codepoint from str at index. On invalid data, returns a result with value == '?' and size == 1 when inside bounds.
Decodes a UTF-8 codepoint from str at index. On invalid data, returns a result with value == '?' and size == 1 when inside bounds.