modify encoding setting