Fix calls to encode_id in SS

Fix 4b67f9d350d2a539053b1724c9bd248aefd83904