Clamp character index returned by -(int)characterIndexAtPoint:(CGPoint)point