Completely removed the html5lib sanitizer. Fixed the string-handling to work in both Ruby 1.8.x and 1.9.2. There are still, inexplicably, two functional tests that fail. But the rest seems to work quite well.
Fixed a whole bunch of minor stuff. Had a go at getting some of the plethora of broken tests to pass.