Could this have been electrolysis between the safety pin (iron) and the foil (aluminium)? (i.e. nothing to do with the cloth?)

Just a thought - wrap the foil in a small baggie or cling wrap.