Added support for Unicode in optimization mode.