Grind arbitrary markup into well-formed XML