#2000 - Make legal_file::smash_extensions more robust.
- Fixed legal_file::smash_extensions.
- Added new unit test.
- Removed duplicated condition in existing unit test.
Merge pull request #132 from shadlaws/fix_2000

#2000 - Make legal_file::smash_extensions more robust.