server encoding error check