Legacy patches are never StringIOs
Fix method signature