Update index and promote setting encoding.