Implementation of Unicode TR39 skeleton algorithm