[Libguestfs] [nbdkit PATCH v2 4/7] server: Improve check of string validity