This is necessary for DMD, which puts file names and function names within JSON strings. For testing I had to add a new test binary with the awkward name of `example"json`, which requires escaping of the '"' char.
Mac and Windows are to be done later.