9 7 bytes
Thanks to @Maltysen for saving 2 bytes!
ceil(len(bin(d)) / 8) forConverts every character
d inof the input to it's binary representation and then splits this into chunks of length 8. OutputsThe number of those chunks is then the values as listamount of bytes needed to encode that character.