character set detection with icu4c