Fix the regex/substitution, which was adding the quotation marks back incorrectly.