Fix dump for non-tty stdout