fixed unicode check