Curly Quote / Apostrophe in WordPress

When a user reported that some of my code snippets didn’t work I noticed that the apostrophes in WordPress are automatically changed to curly quotes. That obviously breaks the code when php tries to parse it. I did some googling and found a simple solution: The “Unfancy Quotes” plugin which can be found here: http://www.semiologic.com/software/wp-tweaks/unfancy-quote/