Fix file sender null terminator.
Force terminate filename.
Merge pull request #128 from aitjcize/null-term

Fix file sender null terminator.
Merge FreeBSD fixes upstream
fix file transfer bug