Improve libcore_util_CharsetUtils performance. am: b3dfff75d9

Original change: https://android-review.googlesource.com/c/platform/art/+/1449216

Change-Id: I1a9160d8245a4e97558a18b879e54fa12abc83fb