Fixed send method

Crashed when trying to send routing id.

For clarity I also changed the _encode method to properly nullify the caller reference.