Correction of invalid mime type in messages sent with DefaultImManager.