Test for unknown extension, fix typo in error formatting

Add test for a zero byte file of unknown extension.

Fix typo in name of format function which that tests reveals.