changed the default cmgr to either SLMB or UTF8 depending on the availability of underlying library functions