Add encoding for appropriate datasources