def _from_bytes(b):
    """
	Convert a string from bytes if it is not already a string.

	:param b: string to convert
	:type b: `str` or `bytes`

	:return: decoded string 
	:rtype: str
	"""
    if isinstance(b, bytes):
        return b.decode('utf-8')
    return b
