utf detector fix