A function that converts an already encoded string into bytes without double encoding it.
This function takes as input a string encoded in utf-8, that's why it first removes the first 2 and the last characters.
A function that converts an already encoded string into bytes without double encoding it.
Python