escape backslashes for json files