Added support for text/plain mime type.