added strdup for utf16