make toMathML.js handle non-BMP characters properly. Fix issue 361.
Follow suggestions from Davide's review comment.
Merge remote-tracking branch 'fred/issue361' into develop
Resolves issue #361.