I fixed it manually like:
private static function sanitizeUrlData($data)
{
if(is_object($data)) {
$attributes = get_object_vars($data);
foreach ($attributes as $key => $value) {
if (substr_count($key, '-')) {
unset($data->$key);
$key = str_replace('-', '_', $key);
$data->$key = $value;
}
}
}
return $data;
}