CerealWorldIO#encode explicitly throws an exception instead of making an NPE for unregistered classes.