Make encoders compatible with node module format