If your commands "work" in your shell, but then magically transform into unusable curly quote glyphs in your mail client, then it's probably your mail client performing the transformation. Or your text editor, or your web browser if you're using web-mail.Your apostrophes in the words "don't" and "I've" up above are also mangled, as are whatever you put around "sum=0;" in your first sentence. Just so you know.
Yes, I've noticed. I'm using a different (more sane) mail client now.