authenticate was missing, utf8_encode

utf8_encode $content['text']