Fix some issues with uncommon server behaviors

You can test it on ftp://free.nchc.org.tw and according to the RFC this is perfectly valid.