Encoding test for web environment