add dropdown to select encoding

WIP