add some tests about content encoding when writing, reading and querying

these tests succeed on jackalope-jackrabbit

will be interesting if all are well on jackalope-doctrine-dbal as well.