Related to issue #619. Attempt to detect and add file extension when it's missing and prior to media import.