Add DlgEncodingsChoice and the corresponding example

also recompile ui