various fixes for nokogiri and textile rendering