workaround rexml document bug in ruby 1.9.3-p392

https://bugs.ruby-lang.org/issues/7961#change-37017