api: split out the encoding group into encoding and unicode