saferstringify for client tests