More unicode encoding fixes

All internal variables should be unicode, not UTF-8 encoded