[SourcesManager] More robust generation of source names from URLs