Compatibility with 1.8.7. In 1.8.7, `string[index]` returns the ordinal instead of the character.