libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 3411dd4457 am: 01dbd1da64 am: 7c516d7080
am: 062c13e997  -s ours

Change-Id: I932cc01acc74a8d148a6c9d25d5c35c48a324844