main

def main():
    """
    main
    """
    arguments = IArguments(__doc__)
    content = open(arguments.filepath).read()
    open(arguments.filepath + ".bak", "w").write(content)
    try:
        newcontent = transliterate(content)
        write_newcontent(arguments.filepath, newcontent)
    except UnicodeEncodeError as ex:
        console(str(ex), color="red")
        newcontent = forceascii(content)
        write_newcontent(arguments.filepath, newcontent)