remove more non-printable chars from strings when matching