Fix an error in the file icon handler when a very long file name is used.
Merge pull request #32 from diantahoc/master

Fixes and improvements for the file icon handler.