A global anomaly from the Z-string