code: def safe_join(*paths):
      
      try:
          return join(*paths)
      except UnicodeDecodeError:
          npaths = ()
          for path in paths:
              npaths += (unicoder(path),)
          return join(*npaths)
docs: Join paths in a Unicode-safe way