Logger: Fix encoding traceback (#1140)

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>