Convert class name to string for 1.8