add file.replace and file.search to windows file module

Fixes #11471