Escape $ in saved state.