Fix recording file name (issue #1870)