Fix bug in code generation for char literals