get_filetype now returns None when it cannot be determined.