This is strange, because the latest version of Electric prepends the library name to each cell name to prevent name conflicts when there are multiple libraries. However, this is a bug for versions of Electric before that change.
The source code fix is easy. Find the module com.sun.electric.tool.io.output.Spice.java
Find the line that reads:
infstr.append(subCellName);
and change it to:
infstr.append(getSafeCellName(subCellName));
-Steve