*Fixed some char encoding bugs