update change encoding script