import yaml


def yaml_dump(object, **kwargs):
    """
    Give the yaml representation of an object as a unicode string.

    :param object: The object to get the unicode YAML representation from.
    :returns: A unicode string.
    """
    encoding = 'utf-8'
    result = yaml.dump(
        object,
        encoding=encoding,
        allow_unicode=True,
        **kwargs
    )

    return result.decode(encoding)