removed dependency on deprecated encoder_base::has_data() method