Fix char encoding