Add safe stringify
Merge pull request #2 from QubitProducts/safe-stringify

Add safe stringify