def fix_id(id):
    """
  fixes the id such that is it a resource identifier
  :param id:
  :return:
  """
    import re
    r = re.sub("[!#$%&'\\(\\)\\*\\+,\\./:;<=>\\?@\\[\\\\\\]\\^`\\{\\|}~_]+",
        ' ', id)
    r = r.title()
    r = r[0].lower() + r[1:]
    r = re.sub('\\s+', '', r, flags=re.UNICODE)
    return r
