See if it's easy to integrate https://github.com/uni-algo/uni-algo into this project and use it as a dependency. Then consider replacing the hand-written unicode stuff.