fixed unicode vs str type validation