change encoding for encoding file