Fixed issue with non-plain text files