player: handle multiline filenames correctly

It is unsafe to print filename as-is to a resume config: someone could create a file named
````
my-cool-video
heartbeat-cmd = "my-cool-command"
# .mkv
````