Cleaned up Encoding test code so that location on hard disk will not affect locating the test html files