Avoid using mutable string methods
Remove String heritage from IOStub

Now it’s a plain Ruby class.