add 'file' exception to fixUrl