[ruby-core:123188] [Ruby Bug#21561] Wrong encoding for File.dirname result on Windows