Fix char encoding issue