Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86  -s ours
am: c282fe5c2c  -s ours

Change-Id: I2b2da216b1525f40785a132ec51b59e44e1ebbd8