title: The type initializer for 'MimeKit.ParserOptions' threw an exception
body: <p>I am testing using an existing System.Net.Mail.MailMessage with MimeKit's support for direct casting to a MimeMessage in addition to using MimeKit's DkimSigner and MailKit's Smtp client.</p>
  
  <p>I am getting "The type initializer for 'MimeKit.ParserOptions' threw an exception." With a stack trace mentioning 'at MimeKit.MimeMessage.CreateFromMailMessage(MailMessage message)'</p>
  
  <p>There is also an Inner Excpetion: "The type initializer for 'MimeKit.Utils.CharsetUtils' threw an exception." Stacktrace: 'at MimeKit.ParserOptions..ctor() at MimeKit.ParserOptions..cctor()</p>
  
  <p>I am not getting any exception on my development box but that only executes up to the conversion and signing not the actual smtp sending.</p>
  
  <pre><code>    Dim netMail As New System.Net.Mail.MailMessage
      netMail.From = New System.Net.Mail.MailAddress("no_reply@lionandlambchurch.com")
      netMail.To.Add(txtTo.Text)
      netMail.Subject = txtSubject.Text
      netMail.Body = txtContent.Text
  
      Dim mimeMail As MimeMessage = CType(netMail, MimeMessage)
  
      Dim headersToSign = New List(Of HeaderId)
      headersToSign.Add(HeaderId.From)
      headersToSign.Add(HeaderId.To)
      headersToSign.Add(HeaderId.Subject)
      headersToSign.Add(HeaderId.Date)
  
      Dim privateKeyPath = AppDomain.CurrentDomain.BaseDirectory + "\App_Data\rsa.private"
      Dim signer = New Cryptography.DkimSigner(privateKeyPath, "lionandlambchurch.com", "key1")
  
      Dim loggerPath = AppDomain.CurrentDomain.BaseDirectory + "\logs\smtp-mailkit.log"
  
      mimeMail.Sign(signer, headersToSign, Cryptography.DkimCanonicalizationAlgorithm.Relaxed, Cryptography.DkimCanonicalizationAlgorithm.Simple)
  
      ' Don't attempt sending locally
      If Request.Url.Host.ToLower().Contains("localhost") Then Return
  
      Using client As New MailKit.Net.Smtp.SmtpClient(New ProtocolLogger(loggerPath))
          client.Connect("relay-hosting.secureserver.net", 25, False)
          If chkAuthenticate.Checked Then
              client.Authenticate("no_reply@lionandlambchurch.com", "****")
          End If
          client.Send(mimeMail)
          client.Disconnect(True)
      End Using
  </code></pre>