'Modify an initiator name to match firmware requirements.
Initiator name cannot include certain characters and cannot exceed
15 bytes in \'T\' firmware (31 bytes in \'G\' firmware).'

def _safe_hostname(self, hostname):

    for ch in [',', '"', '\\', '<', '>']:
        if (ch in hostname):
            hostname = hostname.replace(ch, '')
    hostname = hostname.replace('.', '_')
    name_limit = (15 if self.is_titanium() else 31)
    index = len(hostname)
    if (index > name_limit):
        index = name_limit
    return hostname[:index]
