Explicitly case serialized classes to bytestrings before loading them.

Otherwise was blowing up on unicode padding bytes on `pickle.loads` calls in some scenarios.