I guess this should actually be escaped twice in case the keys or values contain quotes...