Fix MIME type detection for capitalized extensions

Closes #55