Man who carried gas cans into NY cathedral charged