'Format AMQP queue name into a legal SQS queue name.'

def entity_name(self, name, table=CHARS_REPLACE_TABLE):

    if name.endswith(u'.fifo'):
        partial = name.rstrip(u'.fifo')
        partial = text_t(safe_str(partial)).translate(table)
        return (partial + u'.fifo')
    else:
        return text_t(safe_str(name)).translate(table)
