Fix escaping

Fixes escaping of quotes in name, labels and comments.  Escaping HTML
inside Javascript inside SVG is interesting...
Fixes #2