PHP Remova bytes nulos da string

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