Use StringRef instead of a C string in UTF8ToUTF16 and UTF16ToUTF8.