You can disable the invalid characters check by using the MimeOptions.AllowAnyTextCharacters option. You would be able to work with attachments which contain e.g. LF character then (as in this code snippet):
byte[] content = new byte[] { 72, 69, 76, 76, 79, 10 };
var att = new Attachment();
att.Options |= Rebex.Mime.MimeOptions.AllowAnyTextCharacters;
att.SetContent(new MemoryStream(content), "attachment.txt", "text/plain");