Ensure session id is a string