(hopefully) fixed encoding