Converting String to EBCDIC

We’re sending it via FTP… I was told that perhaps the FTP adapter has a built in ASCII to EBCDIC encoder?

In the stringToBytes the encoding that is use is CP037, which from what I’ve read is what should be used… Only the output doesn’t match what i was expecting.