the conversion from int to size_t in charcnv did not take into account