Disable Bracketed Paste in iTerm2
If pasted text shows unexpected characters such as 00~ or 01~, bracketed paste mode is likely still enabled.
To disable it permanently:
iTerm2 Settings → Profiles → Terminal → uncheck Terminal may enable paste bracketing
To fix the current terminal session:
printf '\e[?2004l'