Attempts to determine the best file extension for a given mime type.

@param string $type
@param string $proposed_extension - default extension (in case there is more than one with the same mime type)

@return string|null The extension determined, or null if unable to match.