File name sanitizing doesn't check name length
Forked from #25124 (closed): the record feature derives a recording file name from the name of the input item. However, if that name is very long, for example if it's derived from a video stream URL with a long query string, recording can fail due to a filesystem error. This seems to affect at least Windows 10 (No such file or directory) and ext4 on Linux (File name too long).