title: Read files with greek filenames
body: <p>I am not a unicode expert, I read similar posts without any conclusive solution. I need a snippet to read some files with Greek characters. My files have names like </p>
  
  <p><code>20.10.2011 Ισοζύγιο Πληρωμών- Αύγουστος 2011.xls</code></p>
  
  <p>I have a generator function that yields filenames:</p>
  
  <pre><code># -*- coding:utf-8 -*-
  import os
  import glob
  
  def filesInDir(directory, mask='*.*'):
      for root, dir, files in os.walk(directory):
          for file in glob.glob(os.path.join(root, mask)):            
              yield file
  </code></pre>
  
  <p>Calling this:</p>
  
  <pre><code>for file in filesInDir(directory=r'.'):
      with open(file,'r') as f:
          print f
  </code></pre>
  
  <p>gives</p>
  
  <pre><code>IOError: [Errno 22] invalid mode ('r') or filename: '.\\20.10.2011 ?s?????? ?????\xb5??- ?????st?? 2011.xls'
  </code></pre>
  
  <p>How do a create a valid file object using these sort of filenames?</p>