Add caller specified responses to file dialogs
Factor out newline type names in utils