Rewrote the convertSmartQuotes