Bug 936442 - part 1: refactor CharsetMenu to allow Australis code to use it, r=Unfocused