was being a noob and used the decode context for encoding - time to
make it not shit its pants so terribly now