Use safe stringify when serializing error msg
Merge pull request #16 from rodms10/safe-json

Use safe stringify when serializing error msg