Fixes issues with upper case extensions.
Fixes #236.