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

I've added an explanation - in line 150. Is it enough?