Fixed issue when IRIs are used and cause issues being converted to file names.