Writer text to file with utf-8 encoding.

    Usage::

        >>> from angora.dataIO import textfile
        or
        >>> from angora.dataIO import *
        >>> textfile.write("hello world!", "test.txt")

def write(text, path):
    """Writer text to file with utf-8 encoding.

    Usage::

        >>> from angora.dataIO import textfile
        or
        >>> from angora.dataIO import *
        >>> textfile.write("hello world!", "test.txt")

    """
    with open(path, "wb") as f:
        f.write(text.encode("utf-8"))