added converters for MessageType & ChatFormat