fix encoding issues in rserve-js -- UTF-8 should now be supported in RCloud; closes #920 and #976