If graff's suggestion of s/\x00+//g; "erases everything" in a file that appears to contain both text and nulls, I suspect you don't have what ( it looks like | you said | you think ) you have in the initial data.
Rather than looking at the data with an editor, check it with an ap designed to read hex... or write one of your own -- a task to which Perl is well suited.