quote data in regex

People can choose fancy names for vmware objects (e.g. "Datacenter V++"). Make sure that such input doesn't break the regex.
Merge pull request #1841 from turingmachine/patch-1

quote data in regex