protected function nUrlScheme($scheme)
    {
        if (!($scheme = (string) $scheme)) {
            return $scheme; // Nothing to do.
        }
        if (mb_strpos($scheme, ':') !== false) {
            $scheme = strstr($scheme, ':', true);
        }
        return mb_strtolower($scheme);
    }