GUI-889: Prevent instance detail page from breaking when a security group or key pair name has a single quote

Fixes https://eucalyptus.atlassian.net/browse/GUI-889