Turn off smart quotes using preformatted <pre> tag
“here’s a quoted string in regular paragraph mode – smart quotes ON”
"here's a sentence that uses Preformatted to get rid of smart quotes"
How did that happen? In the WordPress blog editor, I selected the text I wanted to remove smart quotes from – then changed the “Paragraph” formatting to
"Preformatting"
and voila!