Update encoding for filter