Add a way to limit deserialized string lengths and use it for all strings.