made fixEncode not exported