I don't think this is related to Ftp.dll.
There must be some bug in your code, or the values you pass to Login method are different.
Please double check for unprintable characters, check if the last dot is a 'normal' dot and not some special character.
You may try convert string to hex and back to check if those are the same values.
Nothing else comes to my mind.