public static function sanitizeSlug($sSlug) { return is_null($sSlug) ? null : preg_replace('/[^a-zA-Z0-9_\\x7f-\\xff]/', '_', trim($sSlug)); }