Hello,
I don't think 'indents' will infect the configuration. Why are the 'indents' added when editing the configuration file?
Please check whether the name of the configuration file uploaded to the device is the same as the original configuration file name. If so, do not save the configuration when restarting the device.
Also, try changing the encoding of the file on the server-side.