This reverts commit 7dcad95d4f. The output template is most definitly allowed to contain forbidden characters; otherwise -o /foo/bar/vid.mp4 wouldn't work.
7dcad95d4f