Try normal stringify first, then fall back to safe stringify