+#ifdef WITH_NTFS_3G
+ if (utf16_len & 1) {
+ errno = -EILSEQ;
+ return NULL;
+ }
+ char *outs = NULL;
+ int outs_len = ntfs_ucstombs((const ntfschar*)utf16_str,
+ utf16_len >> 1, &outs, 0);
+ if (outs_len >= 0) {
+ *utf8_len_ret = outs_len;
+ } else {
+ ERROR_WITH_ERRNO("Error converting UTF-16LE string to UTF-8");
+ outs = NULL;
+ }
+ return outs;
+#else