Add support for input filtering in Mapper->copyfrom()