UTF-16 (and maybe UTF-8 as well) parsing in ndef looks untested and broken. See @krzk work in progress: - https://lore.kernel.org/linux-nfc/20210710033859.3989-15-krzysztof.kozlowski@canonical.com/ (the commit is not correct and requires further fixing) - https://github.com/krzk/neard/tree/krzk/utf8-utf16 (and commits: https://github.com/krzk/neard/commit/b3e471e0730fb3a3f34ba47a528e08ff6525868c https://github.com/krzk/neard/commit/51bca3462ccdd2711ecce42071d2f175121cfdea )