Free and public domain alternative to libmagic.