fixed an overflow condition in java utf8 strings