marshal json properly so that backslashes in windows paths are escaped