update encodding