Fixed bug with IE encoding problems