fix line endings used in inHead tags