Safe stringify.