call the function io.open with 3 arguments: work_file, string 'w' and encoding set to settings.FILE_CHARSET as arguments,
with io . open ( orig_file , 'r' , encoding = settings . FILE_CHARSET ) as fp :