Bug 1000839: Fixes and unit tests for NfcUtils.encodeNDEF()

What does `b` means? Please give some more meaningful variable names.