Fixed 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