doc: fix some signatures of .end() methods
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines
In .end()
methods, an optional encoding
parameter makes sense only if the data
(chunk
) parameter is provided.