Truncation is naive and when a file is one line it get truncated to 1000 characters. Let's at least check if a file is one or two lines and then increase the line length truncation...