You should be able to identify the filetype by looking at the first few bytes. If they are random the file is just garbage.
interesting SD - what would .mp3 be as the first few bytes? Care to give an example?
The world is a dangerous place to live; not because of the people who are evil, but because of the people who don't do anything about it. Albert Einstein