Adjust encoding