Ensure version_string always returns a String
Prior, if it didn't match the given pattern, it might return a Version
object, which YAML.dump
tries to marshal, resulting in invalid YAML.
Closes https://gitlab.com/gitlab-org/release-tools/-/issues/421