May be you can try specifying content-type in the ftp put cmdline?? like application/x-wmflatfile for flatfiles and i dont think setting encode is required for flatfiles.
The FTP port will normally invoke your service passing an InputStream object. You can use streamToBytes and then bytesToString, which allows you to specify the encoding–probably ISO-8859-1.