public static function removeLeadingSlash($uri)
    {
        $uri = self::filterUri($uri);
        $path = $uri->getPath();
        if ('' !== $path && '/' === $path[0]) {
            $path = substr($path, 1);
        }

        return self::normalizePath($uri, $path);
    }