String : Fix integer overflow in getChars.

bug: 26444984
Change-Id: I3f03d839591aebdd3c51aa805bbd891833e97861
2 files changed