lower() before check extension against list

should fix #218 but it would probably be better to lower the extension
when saving