Problem: _send method doesn't nullify caller's reference

Solution: pass reference address properly to encode, so it
nullifies it when successful.
Merge pull request #111 from hintjens/master

Problem: _send method doesn't nullify caller's reference