Further fixes for a quote enclosed semicolon when loading the DNS string

Did not think #1 fully through.

This fixes the problem in that pull request also when loading the DNS string.

Sorry, I was too quick and did not realize that the lines are also striped with the same method (did not expect this but should have checked first).

Also added some additional tests for loading from a string.

Further question: should the gsubbing be done in a central location instead of 3 separate locations?