a node module to encode columns of a redshift table