modify value encode