Document encoding option