def read_text(abspath, encoding="utf-8"):
    """
    Read string from a file.

    :type abspath: str
    :type encoding: str
    :rtype: str
    """
    with open(abspath, "rb") as f:
        return f.read().decode(encoding)