remove string escaping of single quote in java

allowed for java but not for JS