Decode UTF-8 symbols when saving data to database

If you try to save any data during the experiment that has special UTF-8 symbols in it, the database write will fail. Dealing with unicode is a pain in Javascript, so it would probably be better to do this server-side -- this commit just decodes the UTF-8 and encodes it into ASCII, escaping any unicode characters in the process.