I want to get all filenames in UTF-8. For example, after I read filename in Windows, I do
filename = Iconv.iconv("UTF-8", "Windows-1251", filename)
In Ubuntu I don't convert filename and get it in UTF-8. Maybe exists some method to determine OS filename encoding?