<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _escape_jid(jid):
    '''
    Do proper formatting of the jid
    '''
    jid = six.text_type(jid)
    jid = re.sub(r"'*", "", jid)
    return jid