Call enforce_valid_utf8 method. We removed it in new interface PR.