[fix] [minor] cint idx in prepare_for_save
[fix] [minor] [file manager] pass utf-8 encoded strings to os.remove and os.path.exists