Add string serialization to listeners.