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