'record' is imprecise; use 'save' instead
pass encoding from parent to child documents