Normalize the output filename