fixed error that caused non-breaking space entities to be inserted in header tags with IDs