libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607 am: 41e6690d0c am: 29ccafe5f0 am: fd7bd2dfef
am: 498ffa62c5

Change-Id: I470fe3b20bf5b1231146c488edc98336a7d60049