Prevent PHP warning for array input

I found in testing I was getting a PHP warning from passing an array (a headers array, with Range:) to $this->encode().