No it is not the url_separator that messes up. It is the rtmp.groovy that handles this incorrect. Modify your rtmp.groovy to simply remove the !!!pms_ch_dash_w!!! (or remove it from tv4.ch I'll check later but I think I needed that).
The url that is fed to rtmp.groovy looks like rtmp://xxxxxxxx!!!pms_ch_dash_y!!!yyyyy ... 4video.swf this is (on windows) broken up into "rtmp://xxxxxx" -y "yyyyyy" -W "http://cdn01.tv4.se/polopoly_fs/1.1615597.1280745068!approot/tv4video.swf" Your script breaks this correctly but it has some troubles with "
