Implement ToBencode for Node in krpc