Wrap response in StringIO