replace non-printable unicode characters