Fix URL escaping for package names and versions