def METHOD_NAME(self, keep_tabs=False):
    """
    Read the entire contents of the file as a Unicode string.
    Parameters
    ----------
    keep_tabs : bool
        If False, replace the tabs that GMT uses with spaces.
    Returns
    -------
    content : str
        Content of the temporary file as a Unicode string.
    """
    with open(self.name, mode="r", encoding="utf8") as tmpfile:
        content = tmpfile.METHOD_NAME()
        if not keep_tabs:
            content = content.replace("\t", " ")
        return content