daemon: Properly quote arguments for tar-out, base64-out commands (RHBZ#957772).

This fixes commit c78ec7e085e99bfddd0509dece72bf6a8d0188ce
which was an attempt to fix RHBZ#908322.
tests: Add a regression test for RHBZ#957772.