Fix sql syntax error if json contains simple quote for recording an event. Cf. http://stackoverflow.com/questions/1296180/android-quotes-within-an-sql-query-string