handle 'DEL' and ignore non-ascii chars