unicode(utf16)和utf8编码的字符串互转,纯lua实现

http://www.cocoachina.com/bbs/read.php?tid-312194.html