doc: use Buffer.from() instead of new Buffer()
Checklist
-
documentation is changed or added -
the commit message follows commit guidelines
Affected core subsystem(s)
doc
Description of change
Use new API of Buffer to developers in most documents.