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

What does the `plen` means?