bugfix: the previous encoding solution was not working properly, so I undid it