Merge pull request #1994 from afq984/1e408562-f801-4644-b703-46cd9c672400

compdb: escape control characters in JSON strings