Add better unicode handling
close dialog when finished using it