plugin: ftp: Translate protocol errors to errno.

Issue #128.