public function getOutputFilename($prefix = null)
    {
        $fileInfo = $this->getFileInformation();
        $filename = str_replace('/', '_', $fileInfo->getPathname());

        if (null !== $prefix) {
            $filename = substr($filename, strlen($prefix));
        }

        return strtr(ltrim($filename, '_'), array('.' . $fileInfo->getExtension() => '.html'));
    }