Implemented CAPI rb_enc_codepoint_len.