ConvertUTF imported from LLVM