[PATCH 04/21] qemuBuildChannelsCommandLine: Extract common formatting of 'chardev'