Ensure '\' are still escaped when creating patch file