Updated basic gauge_id validation for url generation to handle edge cases.