added extended ascii support