Allow strings to be saved in JSON mode, fixes #195

Also modified the now-failing JSON string test to pass.

Discussion is in #195