Fix JVM incompatible string comparisons, oraclejdk7 renders entities

Others do not seem to do it that way, including oraclejdk8