Add encoding support to identify dialog