Modified code page detector