Quote names of things when constructing dot

This will protect us from generating syntactically incorrect dot based on names with `-` or`:`' in them.