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