Fix for channel names with spaces

Channel names with spaces were not properly resubscribed after a reconnection.