Backport of r59654.
Issue #4342: Always convert Text.index result to string.
2 files changed