refactor(replace): use quotemeta module