Fix issue following dart:UTF to dart:convert migration