Actually encode properly