Update encoding of homework.