Fixes error with not branch in some terminals

In some cases and terminals checkouting certain commit will issue error of non implicit byte-string conversion.
Explicit decoding fixes this problem.