Set the MessageId header in the .ctor rather than in WriteTo

Fixes issue #43