Add encoding support.