cli: Handle bytes in the JSON encoder.
plugins.dailymotion: Fix RTMP parameters.

rtmpdump parses the URL we gave incorrectly which caused one
of the CDNs used by Dailymotion to refuse sending data.

So we split the parameters in URL ourself and give them to
rtmpdump separately instead.

Fixes #201.