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