public static function getSafe(string $fileName = '', bool $allowMixedCase = true): string
    {
        $fileName = \iconv('UTF-8', 'ASCII//TRANSLIT', \trim($fileName));
        if (!$allowMixedCase) {
            $fileName = \strtolower($fileName);
        }
        $fileName = \preg_replace('/[^a-z0-9\-\ \.]/i', '', $fileName);
        $fileName = \preg_replace('/[\s\-]+/', '-', $fileName);

        return $fileName;
    }