Messed up commands giving 500 responses?

Tell your customer to capture the network traffic with ethereal.
http://www.ethereal.com/

I don't think the bug is in the FTP library itself.

Regards,
-Mat

Here's an Ethereal-clone which might be a little bit easier to use for Windows users:
http://www.networkchemistry.com/products/packetyzer.php