Encode datas using base64, only for mysql insert and pop offline message