Test whether compiler has codecvt.

Previous commit broke on older compilers.  Tracker item 3671.