#23040: Clarify treatment of encoding and errors when component is bytes.

Patch by Wojtek Ruszczewski.

--HG--
branch : 3.4