SFTP: Use hexdec() and bin2hex() for filesize calculation.

As per discussion in #492