Support StringIO methods.