Fixed for CRM-13146
Merge pull request #1382 from swati-karande/CRM-13146

  Fixed for CRM-13146
Tested with one and two instances of double-quote and single-quote. Fixes the problem.