mods to avoid unicode encoding problem (https://trac.faunalia.it/opengeo_rt/ticket/305)