Add some conditions to replace-smart-quotes.