Encode paths for non unicode locales