fix gucharmap detection