Add more escaping when writing the JSON datafile

ed7e22e04909c6f94223e0ba5d9ee06d7d84960f introduced two more keys and
values into the testenv JSON, but the double quotes are not escaped.
Escape them.

Change-Id: Ia2ff2d137f28ed84ec9254fa1d6698bb5c9d7a7a