Add missing _escape_snapshot function