utf8 <=> console code page conversion