Bugfix/json strings not escaped

If you don't want to use the json api then the strings at least need to be escaped or they won't be parseable json