Windows Client Synch Problems -> Error Space at the end of File

I have the Problem that many files who are uploaded from my Mobile IOS Client have problems to Synch on my Windows client. The error Message is that there is a space at the end of the file. Is there any Solution to prevent this space at the end of the file? I have a lot of files with that space and it would be nice if there is a Script ore something to delete this space and prevent the space in the next uploads.

Thanks for help