escape and thereby preserve quotes in values

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
Merge pull request #219 from asteven/issue/219

__key_value removes quotes from values