Patch for bioformats issue #357 - buffer overrun