DO NOT MERGE libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 5fce0542b6 am: d0ad14ca21 am: 3841c92912  -s ours am: 247ac63c69  -s ours am: 6179f1a56e am: 451f4b3d04 am: 3c85e4e5e7  -s ours am: baac6666fe am: 2858362ffe am: 7a0c6bf505 am: f96271187f  -s ours
am: 53d529a585

Change-Id: Ia49dd230eb055a8dba4306ecbdf7dc10098acccb