encode done for os.walk and os.path.exists