So show us the actual code that gives you the error. Otherwise we cannot help you.
Or have WinSCP GUI generate valid code for you:
https://winscp.net/eng/docs/ui_generateurl#code
Or have WinSCP GUI generate valid code for you:
https://winscp.net/eng/docs/ui_generateurl#code