ruby 2.0 compatibility: tasks may not yet be an Array, so cast it
ruby 2.0 compatibility: use String#bytesize rather than #length to determine how many bytes will be written to channels
Merge pull request #6 from willbryant/master

Fix ruby 2.0 compatibility