fix nokogiri 1.6 incompatibility issue, thanks @benjaminwood
Merge pull request #722 from barodeur/fix_nokogiri_version_issue

fix nokogiri 1.6 incompatibility issue, thanks @benjaminwood