util: better error messages in ClasspathURL