Fix mbstate_t strict-aliasing violations.