Was this change intentional?  

I don't think you want to change the behavior of getFilenameExtension() in this pull request -- it looks like it's going to cause other parts of the system to start failing because they're expecting a leading dot. 

Am I missing something?