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

Will do, thanks.