fixed ascii encoding bug