fix for extension bug, test for absurd filename handling