Trac #15178: FTP TLS not working

Trac Ticket: http://trac.xbmc.org/ticket/15178

Here is a little fix for this problem, I have compiled and tested it on my machine.

I would appreciate, if you can merge this pull requests in the master and Gotham branch.

Best regards,
Christian