replace method for BaseInputFilter

Adds a replace method needed by https://github.com/saltoledo/zf2/commit/6876c44169e76a969150e1f54357bbc8624b604c