Merge "String : Fix integer overflow in getChars."