In your blog, why not wrap the above code in <code> tags? That will stop it from doing smart quotes.