Replace string literals, refactor 2 functions
Replace string literals, refactor 2 functions

Replace wchar string literals with by wrapping them in the
TEXT(...) macro, which uses char or wchar depending on whether
the UNICODE preprocessor variable is defined. Makes code portable!

Refactor writeConfigurationFileBuffer -- there seems to have been
unreachable code.

Refactor searchKeyIndex to be more concise.

benjaoming/installers,learningequality/ka-lite-installers,learningequality/installers,benjaoming/installers,learningequality/installers,ruimalheiro/installers,learningequality/ka-lite-installers,ruimalheiro/installers,mrpau/installers,learningequality/ka-lite-installers,ruimalheiro/installers,mrpau/installers,mrpau/installers,learningequality/ka-lite-installers,benjaoming/installers,ruimalheiro/installers,mrpau/installers,learningequality/installers,learningequality/installers,benjaoming/installers