Can I just say file extensions are a terrible way to indicate content type. They're fragile, unreliable, inelegant, ugly, and there are already better replacements. On Linux, for instance, there's an extended attribute user.mime_type, which is a Media Type. In email and HTTP, there's Content-Type, which is also a Media Type.
Just use the appropriate metadata field and put a Media Type!