Implement changes to UTS46 algorithm See https://www.unicode.org/reports/tr46/tr46-33.html#Validity_Criteria