implementing xregex for real unicode