Set head->meta->charset when serializing