fdt: Add a function to remove unused strings from a device tree