(The APIs in `std::str` expose byte indices too.)