This will cause a error if the translated result contains utf-8 characters. The `translated` string will be a unicode object, however we are going to send it through a socket so it must be converted into a utf-8 decoded string.
This is done by encoding `translated = translated.encode('utf-8')` and then decoding the string again `"\"" + translated.decode('utf-8') + "\""`

(Don't ask my how that works, the way python 2.7 handles unicode is a mystery to me.)