Handle unicode

R doesn't appear to handle unicode to well.  Added code to convert unicode characters into escaped unicode (\unnnn) and then output the file as ASCII