Handle Strings and byte[]s in the deserialize method.