Decodes @obj using :prop:encoding if :prop:decode_responses

def _decode(self, obj):
        """ Decodes @obj using :prop:encoding if :prop:decode_responses """
        if self.decode_responses and isinstance(obj, bytes):
            try:
                return obj.decode(self.encoding)
            except UnicodeDecodeError:
                return obj
        return obj