allow unicode in string conversion / validation and add unit tests