$data =~ s/%00//g; # prevent null byte hacks $data =~ tr/\000//d;