Add C utility function to convert a C string to UCS2.