add NDEF encoding and decoding methods