update the index page and test for chinese encoding