This how this function is intended to be used. Note that you do not need to put it in a WString variable first and can rely on it being converted to a UTF-8 string in one line (not saying that you should) as well:

Code:
UChar[] ucData
String sData
...
Move (UCharArrayToWString(ucData)) to sData