The type of value is now anything which could be converted to string. WebDriverKeys::encode assumes the type of `$value` is an array.