def read_text(filename):
    """Read a ``utf-8`` encoded text file and returns the text as ``string``.

    This is just a utily function, that is not recommended to use if the text
    file does not fit your available RAM. Mostly used for small text files.

    :param filename: File from which is the text to be read
    :type filename: string
    :return: Text in the file
    :rtype: string
    """
    with open(filename, 'r', encoding='utf8') as fp:
        text = fp.read()
    return text
