Add open mode to file loaders.