Follow-on to 94b26e506c339f50b8d094057bffc1877a79afa9 - make the new legal_file
functions more robust when passed an unknown extension.  Fixes Item_Model_Test.