Fix converting chat components to ANSI codes