The upstream version that was picked contains characters that are invalid in Debian version strings.

For version strings that come from upstream tags, this can be because the upstream tags use characters that are not valid in Debian version strings. The janitor currently only applies very basic version mangling to upstream tags: