Automatic file extension detection in the file dialogs (See issue #24).