Trim trailing NIL character when fetching string attribute

Also, fix one instance of non-inclusive language that slipped through.

Bug: 162032964
Bug: 162745675
Test: custom implementation to watch for NEWLINK/DELLINK messages
Change-Id: I8fe05731fd9d598ec3aec1452aa04ac764e9c7e7
4 files changed