fix segfault in ftp.c (ftp_loop_internal)
Cleanup cmd_string_uppercase