Use the right decorator for classes to support __str__.