Check entry MIME type and escape text/plain contents.