def __iter__(self):
    with io.open(self._filename, 'r', encoding='utf8') as f:
        return iter(f.readlines())
How can I implement a file like class that always returns in UTF-8 encoding irrespective of file encoding?