Fixing safari bug with output filename.