Seaweed piling up on a beach might look harmless, but as it begins to rot, it can release gases that are toxic to people.