Make sure session cache key consists of strings