Corruption filtering changes for core.

The visit_item function in handoff needs to be made aware that encode_handoff_data can possibly fail.