Returns the index to the next character.
The index must not be the index of the terminator of the string (i.e. after the last character).