Properly sanitize ISO-formatted dates for use in version strings

Tests pass, timezone normalization (to UTC) for some other day. Perhaps.