Fixed it trying to encode the wrong thing (woops)