prepare Message for use with ObjectStream