change index file encoding