When deducing the variable assignment, escape any double quotes.

Since we will extract the code and make it string (enclosed with double
quotes), we need to escape any inlined double quotes.