Serialize the string representation of the class.

With Rails 4 something has changed with the serialization of classes in
that they contain way more information than just the classname. Not sure
yet if this impacts Resque but doesn't appear that way through the
tests.