Use IO handles with non-file objects
