fix JS error for ascii support.