Server side ansi decoding