Fixed generateStreamContext to pass 'header' as a string not array

Although the array works locally it fails on Google AppEngine. All the examples on php.net use strings also.