Preventing contamination in packaged beer