Re: ASCII vs binary
Use switch -transfer=binary or -transfer=ascii
https://winscp.net/eng/docs/scriptcommand_put
https://winscp.net/eng/docs/scriptcommand_put
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.