add charset to index