Bug 986769 - bug 940038 caused a JS error when opening the character encoding view, rs=firebot