set character escaping rules to match actual Dbpedia behavior (may be identifical to what we had before, but this is probably faster)