Related: this Encoding enum also seems overly coupled with dictionary encoding