Revert "removing unencoding params"

This reverts commit 2a7bfa0ad801fc8710e462aaa188b138ff6fd67a.