Issue #1204 Honor MAX_MESSAGE_SIZE in the protobuf stream encoder