started handling non-printable chars better