Encode params for PUT too