modify the default configure that the way of encode