Support encoding, mimetype, charset for messages

Support encoding, mimetype, charset for messages