document encodeWithIndexes option