Fix to work around XPath normalize-space issue in Ruby 1.9