hack in encoding