SI-8589 Performance improvement for ArrayCharSequence.toString