Implement ansi_char and chr