Bugfix: saving search strings with non ASCII chars into history