HOSTDEV-898 stripping non-printable characters from string