Changes to handle unicode characters

R doesn't appear to handle unicode characters well.  The changes here are to convert unicode characters into the escaped unicode equivalent (\unnn).