original from utft-lib