Extended test for strings with non-printable chars