Fixed encoding in autocompleter