fix for extension bug, test for absurd filename handling
document changes to output function
Merge pull request #406 from jenius/v3#weird_filenames

Fix for extension bug, test for absurd filename handling