add a method 'toUnicode' in StringTest