resolve nil params value encode issue