documentation of encoding parameter

Hi Nils,
I added the missing documentation and extended the existing example.
Best regards
Steven