Workaround for libxml2 forcibly adding a content-type meta tag.

The version of libxml2 used by Nokogiri forcibly adds a content-type meta
tag to all documents with a <head> element during serialization, which is
stupid.

See also: sparklemotion/nokogiri#1008
Add a couple of legacy attributes to the relaxed config.