Don't cut long text files

The fix allocates a buffer big enough to format large files. Node console.log seems to limit the size to 8192 bytes