skeletonexport: sanitize argument for SQL command.
export_NeuroML_Level3: fix error whereby many segments were skipped.