Avoid excessive quoting of DOCTYPE attributes

DOCTYPE attributes are already double-quoted so the additional double quotes applied in the PUBLIC and SYSTEM strings were resulting in un-parseable output. This patch ensures existing double quotes are stripped.