Fixed invalid js encoding