add encoding and save to copy file