Out of bounds exception

convertToneNumber2ToneMarkWithNSString causes an out of bounds
exception.

I noticed this when trying to return PinYin with tone marks.