Cherry-pick from master pr: #40096 Using unsafe.Slice to convert string to []byte by directly using underlying data could avoid lots of copy and cpu time Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>