I writing program for an university where i'm studying. I created a special dictionary file format which stored encrypted by Vigenère cipher (students must not have an ability to spy). It seems to be apparent to encode data as bytes. The first version (on Delphi, only English-Russian for now, but Unicode supported) of program already taken by educators and it is not very good to change file format used by it now (after that educators will be forced to change their dictionaries).
I think, may be we can convert WideChar to Word and Word to WideChar, and Word to pair of Bytes manually, using typecasts word(wc_var), widechar(word_var) and manupulating it. I'll try. An idea came.