add encoding setting in seed