only try to load the class if it's a valid module name

This allows subtypes to define coercions from invalid module names, by
e.g. substituting a standard prefix for names starting with ::