[javascript] Remove non-ascii character in string