Update encoding.