Escape double quotes in shell formatter

Before this change the shell formatter could not be trusted to output
anything with double quotes. With this change we can pass the output
directly to the shell for evaluation.

Change-Id: I8f2bf23a1523f6f02e5ce8563038b20e079b52da
Closes-Bug: #1269908