fixes ping init and tweet encoding