don't assume that *.txt is mapped to Plain Text (IDEA-122775)
(cherry picked from commit f072cf4)