libdialog: Increase MAX_LEN to 4096 (bug 2480)