eqn: add working mbtowc and wctomb

Fixes UTF-8 input files.

R=rsc
http://codereview.appspot.com/4132042
2 files changed