@classmethod
def filter_stream_header(cls, s):
    """Remove bogus stream headers from socket output"""
    new_string, repl_count = cls.StreamTypeHeader.subn(b'', s)
    return new_string, repl_count
