Fixed PHP-1052: Replace JSON encoding of stream notifications with standard PHP serialize encoding.