fix #10175: restrict image name to String <256 chars

Fixes http://trac.openmicroscopy.org.uk/ome/ticket/10175. To test, try importing images from absurdly long-named/deep paths. Cc: @manics.

--no-rebase as it's FS-specific.