Fix missing argument to new_file.insert
Merge pull request #15139 from Ryanl92/patch-1

Fix missing argument in file.replace