add quotes when there's a - in the attr name
better string escaping