reverted output encoding changes

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
improved bug report

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>