Fix parsing of plain text documents (earwig/copyvios#3)