def to_str(value, encoding):
    """Decode a :obj:`bytes` object into a str with UTF-8 encoding.

    :param bytes value: The value to decode
    :param str encoding: The encoding type to use
    :rtype: str

    """
    return value.decode(encoding)