Fixed folding for text files