Fix the issue that the converted encoding format doesn't match the selected encoding format.