File encoder.