Fixing UTF8 bug

Same thing as in ios-basic-samples.  The decision to use UTF-16 does not seem to be helpful at all.  Using UTF-8 for data makes it compatible with web (due to base64 translation).