Anaerobic treatment of methanolic wastes