stream: validate readable defaultEncoding
Part 2 of https://github.com/nodejs/node/pull/46322.
Related to: https://github.com/nodejs/node/issues/46301.
With this PR, it will check if the option defaultEncoding
of a Readable
is a valid encoding, if not it will throw.