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.