begin using utf8-string-ranges instead of std::pairs of charstars