use ``file.replace`` state instead of ``file.sed``

fixes #13