public function execute(Pygmentize $pygmentize, array $options)
    {
        $cmd = sprintf('-f %s -l %s -O encoding=%s %s %s',
            $pygmentize->getFormat(),
            $pygmentize->getLexer(),
            mb_detect_encoding(file_get_contents($pygmentize->getSubject())),
            $this->generateOptions($options),
            $pygmentize->getSubject()
        );

        return $this->executeCommand($cmd);
    }