bug fix - some UTF-8 characters cannot be encoded to JSON, making the React app crash