HQL binary data (rebased onto develop)



This is the same as gh-2190 but rebased onto develop.

----

Run a hql query that returns binary data (for instance the cached script params). Instead of an exception you should see `<Invalid UTF-8>`.
See https://trac.openmicroscopy.org.uk/ome/ticket/12115