Tony, it is integer, not a string.
Hessian, I've got the same problem on UNIX system, it didn't allow me to chmod my files from my scripts.
To skip that, I've got to create some dir in ftp, chmod it to a+rw, and only after that to write data in it.
How it can be solved?