s3:lib/charcnv: add next_codepoint_ext() that accepts input charset.