PHP Удалить нулевые байты из строки

$text = str_replace("\0", "", $text);
Friendly Hawk