Update info on save (so we always have current document encoding)