BUGFIX: proper escaping when transfering binary data columns - e.g., BLOB
(also more detailed error logging)