Change format of 'output_filename' to avoid shell errors