ensure NULL-terminated SP strings