Better handle classes with non-standard to_underscore names.