Add test for serialize_old_style_filename

Test shows a problem with this function
Fix serialize_old_style_filename
Print command line when input_format example fails