file.blockreplace: fix typo endswith