This is my solution:
I'd use a decent text editor with regex find and replace capability (e.g., Visual Studio, UltraEdit, etc.).
Then Do: find
^\s*(\w+\.\w+)\s*:
and for the names with 2 dots:
^\s*((\w+\.\w+)+)\s*:
and replace with
"$1":
Or you could use powershell:
$allText = gc yourfile.txt $allText -replace '^\s*(\w+\.\w+)\s*:', '"$1":'