Bug 1000839: Fixes and unit tests for NfcUtils.encodeNDEF()
Merge pull request #21306 from kamituel/Bug_1000839_encodeNDEF_fix

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