check the variable qualifier for safe class names