def to_string(data: bytes, encoding=None):
    if (encoding is None):
        return data.decode('utf-8')
    return data.decode(encoding)
def to_string(data: bytes, encoding=None):
    if (encoding is None):
        return data.decode('utf-8')
    return data.decode(encoding)