Handle types like UUID that need str conversion for serializing