Fix ruby 1.9 character coding issue