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

@snowmantw Other than being bytes, it doesn't matter what the contents is - it's only a payload. But sure, I can add a comment to clarify.