Removed unused basestring case from dump_stream.