Fix encoding on FIFOs