function YOU_MODULE_NAME_preprocess_views_view_field(&$vars) {
$view = $vars['view'];
$field = $vars['field'];
if ($view->name == 'name' && $view->current_display == 'display' && $field->field_alias == 'alias') {
$vars['output'] = str_replace(' ', '_', $vars['output']);
}
}