function um_before_update_profile($changes, $user_id)
{
    global $ultimatemember;
    if (!um_get_option('um_force_utf8_strings')) {
        return $changes;
    }
    foreach ($changes as $key => $value) {
        $changes[$key] = um_force_utf8_string($value);
    }
    return $changes;
}
function um_select_dropdown_dynamic_options_to_utf8($options, $data)
{
    global $ultimatemember;
    if (!um_get_option('um_force_utf8_strings')) {
        return $options;
    }
    foreach ($options as $key => $value) {
        $options[$key] = um_force_utf8_string($value);
    }
    return $options;
}
function um_is_selected_filter_value($value)
{
    global $ultimatemember;
    if (!um_get_option('um_force_utf8_strings')) {
        return $value;
    }
    $value = um_force_utf8_string($value);
    return $value;
}