fix encoding per delete