Add a utf16to8 function to generate a correct UTF-8 character's QRcode like "你好"

It would generate a QRcode for **`}** now, while generating a QRcode for **你好**. This pull request will fix it.