add encoding field only when the persistence includes BODY