Fixed some ASCII encoding bugs.