Properly sanitize ISO-formatted dates for use in version strings