support delimiter and encode