Convert a UTF-8 string into a ucs2 one.
The ucs string will be in network byte order, and terminated with a 16-bit null.
ptr |
a UTF-8 string to convert |
The converted string. Free it with g_free, when no longer needed. |