there is a little encoding error in windows. you can solve this with: `with open(self.domain_filename, mode='r', encoding='utf-8') as file_domains: `