[charset] return size_t of converted charset type string