Fixed issue where non-text based files were not being exported / saved correctly.