func CorrectWith(dst []byte, src []byte, repl string) []byte
CorrectWith corrects the invalid utf8 byte with repl string.
func Validate(src []byte) bool
Validate is a simd-accelereated drop-in replacement for the standard library's utf8.Valid.
func ValidateString(src string) bool
ValidateString as Validate, but for string.