Clean up html5lib serializer