Implement NodeIDToBytes() helper