Ensure that special class names are unqualified

Replicates the PHP error message