Wine kills potentially fatal bacteria, scientists have discovered.