Params encoding cleaning