fix autocomplete first letter for non-ascii chars