use confidence to predict charset