fixed dialog dlg_vals printing

Also encode DEL (0x7f) character since it does not print properly at the
console