bash lore: how to properly parse NUL separated fields