Nokogiri encoding problem

C:\Users>ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

C:\Users>gem list nokogiri

*** LOCAL GEMS ***

nokogiri (1.5.0 x86-mingw32)

my_example.rb

#encoding:euc-kr
require ‘nokogiri’

builder = Nokogiri::XML::Builder.new(:encoding => “euc-kr”) do |xml|
xml.root {
xml.name “테스트” # “TEST”
}
end
puts builder.to_xml

encoding error : output conversion failed due to conv error, bytes 0xC5
0xD7 0xBD 0xBA
I/O error : encoder error

Cannot reproduce the error on Debian (ruby 1.9.2p318 (2012-02-14
revision 34678) [i686-linux]), it works.