Fix EncodingWarning in freeze_modules. (GH-28591)

1 file changed