std::str: fix .slice_chars example. Fixes #11014.