Add a method to convert string to *w_char (utf16) in lua extensions