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

I saw that after this comment. No problem. R+ is marked.