doc: pass string to textEncoder.encode
as input
#46421
Merged
textEncoder.encode
as input
#46421