sanitize version input instead of validating it