Scientists have found that waste from the beer brewing process can be transformed into nanoparticles with powerful antibacterial properties.