func unicode/utf8.ValidString

4 uses

	unicode/utf8 (current package)
		utf8.go#L528: func ValidString(s string) bool {

	encoding/asn1
		marshal.go#L645: 					if !utf8.ValidString(v.String()) {

	io/fs
		fs.go#L48: 	if !utf8.ValidString(name) {

	strconv
		quote.go#L439: 				valid = utf8.ValidString(in[len(`"`) : end-len(`"`)])