Add StringIO support for inflater.rb