Fix URIUtils::GetDirectory to only work with CURL::GetFileName() part for url.