replaces smart quotes with regular quotes

In our usage we found that a lot of html emails end up with smart quotes in the doctype declarations, which causes unexpected behavior (including removing the textContent attribute from DOMNode objects) from the php DOMDocument classes. 

This replaces smart quotes with regular quotes before the html is loaded into DOMDocument to prevent that.