Open source shields BitTorrent from legal attacks