ncm-gip2: fix missing retrieval of parameters in write_encoded()

Fixes #50.
Merge pull request #51 from jouvin/gip2

ncm-gip2: fix missing retrieval of parameters in write_encoded()