API: fix str-accessor on CategoricalIndex
closes #23555
closes #23556

split off from #23167
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

