I don't think we can hard code UTF-16 here, this won't work on platforms that default to UTF-8. It looks like to avoid encoding issues altogether, we'll need something like this: http://stackoverflow.com/a/562207/606036