is_package_metadata search needs a NULL terminator