Change the way string indexing is handled. Closes #468