change encoding of spec