Use Mail::Message#encoded for serialization

It turns out that using to_yaml / from_yaml mucks with the MIME boundaries and doesn't produce precisely the same email. Normally it's probably good enough, but it breaks things like DKIM authentication that signs the body text. Change is to use Mail::Message#encoded to serialize instead.