Update autocomplete.js

Replace escape function to encodeURIComponent.