Server side ansi decoder