code: def punify_filename(filename):
      
      path, extension = splitext(filename)
      return path.encode('punycode').decode('utf8') + extension
docs: small hackisch workaround for unicode problems with the picflash api